package com.base.exp

import com.loyal.core.gson.GsonUtil

fun <T> String?.toBean(objClass: Class<T>): T? {
    return GsonUtil.json2Bean(this, objClass)
}

fun <T> String?.asList(tClass: Class<T>): List<T> {
    return GsonUtil.json2List(this, tClass)
}